Skip to content

Conversation

@kumaryash90
Copy link
Member

@kumaryash90 kumaryash90 commented Feb 19, 2025

TOOL-3478


PR-Codex overview

This PR focuses on updating constants related to platform fees and modifying the PlatformFeeFieldset and CustomContractForm components to utilize new fee logic based on the publisher address.

Detailed summary

  • Added THIRDWEB_PUBLISHER_ADDRESS constant.
  • Introduced DEFAULT_FEE_BPS_NEW constant.
  • Updated PlatformFeeFieldset to destructure isMarketplace from props.
  • Modified CustomContractForm to use DEFAULT_FEE_BPS_NEW based on publisher address check.
  • Adjusted platform fee properties for contract deployment.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@kumaryash90 kumaryash90 requested review from a team as code owners February 19, 2025 15:11
@vercel
Copy link

vercel bot commented Feb 19, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
login ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 10:16pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 3, 2025 10:16pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Mar 3, 2025 10:16pm
thirdweb_playground ⬜️ Skipped (Inspect) Mar 3, 2025 10:16pm
wallet-ui ⬜️ Skipped (Inspect) Mar 3, 2025 10:16pm

@changeset-bot
Copy link

changeset-bot bot commented Feb 19, 2025

⚠️ No Changeset found

Latest commit: c0bbc21

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Feb 19, 2025
@codecov
Copy link

codecov bot commented Feb 19, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.71%. Comparing base (9fcf1b8) to head (c0bbc21).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6299   +/-   ##
=======================================
  Coverage   54.71%   54.71%           
=======================================
  Files         874      874           
  Lines       54620    54620           
  Branches     3718     3718           
=======================================
  Hits        29884    29884           
  Misses      24641    24641           
  Partials       95       95           
Flag Coverage Δ
packages 54.71% <ø> (ø)

@github-actions
Copy link
Contributor

github-actions bot commented Feb 19, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.85 KB (0%) 937 ms (0%) 155 ms (+168.15% 🔺) 1.1 s
thirdweb (cjs) 127.21 KB (0%) 2.6 s (0%) 224 ms (+37.07% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 112 ms (0%) 79 ms (+1488.53% 🔺) 191 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 32 ms (+1242.38% 🔺) 42 ms
thirdweb/react (minimal + tree-shaking) 19.38 KB (0%) 388 ms (0%) 88 ms (+693.2% 🔺) 476 ms

@graphite-app
Copy link
Contributor

graphite-app bot commented Feb 19, 2025

How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

@kumaryash90 kumaryash90 added merge-queue Adds the pull request to Graphite's merge queue. and removed DO NOT MERGE This pull request is still in progress and is not ready to be merged. labels Mar 3, 2025
Copy link
Member Author

kumaryash90 commented Mar 3, 2025

Merge activity

  • Mar 3, 5:04 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Mar 3, 5:08 PM EST: A user added this pull request to the Graphite merge queue.
  • Mar 3, 5:17 PM EST: A user merged this pull request with the Graphite merge queue.

TOOL-3478

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the platform fee configuration in the contract deployment process, introducing a new fee constant, and modifying the logic to handle different fee scenarios based on the publisher address.

### Detailed summary
- Added `THIRDWEB_PUBLISHER_ADDRESS` constant in `addresses.ts`.
- Introduced `DEFAULT_FEE_BPS_NEW` constant in `addresses.ts`.
- Updated `PlatformFeeFieldset` to destructure `isMarketplace`.
- Modified `CustomContractForm` to conditionally use `DEFAULT_FEE_BPS_NEW` based on the publisher address.
- Adjusted imports in `custom-contract.tsx` to include new constants.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the yash/deploy-config-updates-2 branch from 6180116 to c0bbc21 Compare March 3, 2025 22:09
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground March 3, 2025 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – login March 3, 2025 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui March 3, 2025 22:09 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 March 3, 2025 22:09 Inactive
@graphite-app graphite-app bot merged commit c0bbc21 into main Mar 3, 2025
32 checks passed
@graphite-app graphite-app bot deleted the yash/deploy-config-updates-2 branch March 3, 2025 22:17
@vercel vercel bot temporarily deployed to Production – wallet-ui March 3, 2025 22:17 Inactive
@vercel vercel bot temporarily deployed to Production – login March 3, 2025 22:17 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 March 3, 2025 22:17 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground March 3, 2025 22:17 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. merge-queue Adds the pull request to Graphite's merge queue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants